<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link rel="stylesheet" type="text/css" href="css/spePrice.css">

<div id="spePriceTitle">
	<div id="spriceIcon">
		<img width="50px" height="50px" src="images/spePrice.jpg" border="0">
	</div>
	<div style="width: 500px; border-bottom: 2px dashed #9C9E6B;">
		<div id="spriceTitleText">
			特&nbsp;&nbsp;价&nbsp;&nbsp;图&nbsp;&nbsp;书
		</div>
		<div class="spemore">
			<a href="${CONTEXT_ROOT}/SpecialBookServlet?method=spe"> <img
					src="images/more.gif" border="0"> </a>
		</div>
	</div>
</div>
<div id="spriceContentList">
	<c:set var="i" value="1" />
	<c:forEach items="${spePricePList.objectList}" var="sprice">
		<div id="spriceContent">
			<div id="spriceImg">
				<a
					href="${CONTEXT_ROOT}/SysBookServlet?method=viewBook&bookId=${sprice.bookId}&parentCategoryId=${sprice.categoryId}"><img
						height="110px" border="0"
						src="${CONTEXT_ROOT}/upload/${sprice.bookImg}"> </a>
			</div>
			<div id="spriceText">
				<p id="BookName">
					<a
						href="${CONTEXT_ROOT}/SysBookServlet?method=viewBook&bookId=${sprice.bookId}&parentCategoryId=${sprice.categoryId}">${sprice.bookName}</a>
				</p>
				<p id="BookPrice">
					<font color="#000">销售价:</font>￥${sprice.bookPrice}
				</p>
				<p><a href="${CONTEXT_ROOT}/ShoppingCartServlet?method=add&bookId=${sprice.bookId}">购买</a></p>
			</div>
		</div>
		<c:if test="${i==4}">
			<c:set var="i" value="0" />
			<div style="clear: both"></div>
		</c:if>
		<c:set var="i" value="${i+1}" />
	</c:forEach>
</div>